package com.baizhi.dao;

import com.baizhi.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminDAO {
    Admin selectByName(String name);
    List<Map> selectAll();

    void insert(Admin admin);
    void updateByPrimaryKeySelective(Admin admin);
    Admin selectByPrimaryKey(Integer id);
    void deleteByPrimaryKey(Integer id);
    void add(@Param("adminId")Integer adminId,@Param("orderId")Integer orderId);

    Admin selectAllRole(@Param("name")String adminName);
}
